/*
 * @Descripttion: 
 * @Author: ziwei
 * @Date: 2022-07-06 21:18:31
 * @LastEditors: ziwei
 * @LastEditTime: 2022-07-06 21:23:58
 */



//出队操作
Queue.prototype.dequeue = function(){
    if(this.empty()) return
    this.head +=1
}
//队列满了
Queue.prototype.full = function(val){
   return this.tail === this.arr.length
}
//空队列
Queue.prototype.empty = function(val){
    return this.tail = this.head
}
//队列中的个数
Que.prototype.size  =function(val){
    return this.tail - this.head
}

